#ifndef JUNCTION_H
#define JUNCTION_H

#include "ItemBase.h"
#include "ItemFactory.h"
#include <QObject>

class Junction : public ItemBase
{
	Q_OBJECT
public:
	Junction(const QString type, QPointF pos,ItemBase* linker=NULL);
	~Junction();

private:
	void initData();
	void paint(QPainter *painter, const QStyleOptionGraphicsItem * option, QWidget *widget);
	QRectF boundingRect() const;

public:
	virtual QMap<int, QString> getAttrs();
	virtual QVector<bool> getDrawFlags();

};

#endif